<div class="card-block dt-responsive">

    <div class="table-responsive">
        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">

            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <g:sortableColumn property="name" title="名称"/>
                    <g:sortableColumn property="status" title="状态"/>
                    <g:sortableColumn property="user" title="执行人"/>
                    <g:sortableColumn property="endTime" title="计划完成时间"/>
                    <g:sortableColumn property="actualEndTime" title="实际完成时间"/>
                    <g:sortableColumn  class="text-center" width="8%"  property="active" title="操作"/>
                </tr>
                </thead>
                <tbody>
                <g:each in="${taskList}">
                    <tr>
                        <td><g:link action="show" controller="activity" id="${it?.id}"
                                    class="firstTd">${it?.name}</g:link></td>
                        <td>${it?.status}</td>
                        <td>${it?.assignedTo}</td>
                        <td><g:formatDate date="${it?.endTime}"
                                          format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                        <td><g:formatDate date="${it?.actualEndTime}"
                                          format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                        <td class="text-center">
                            <g:link class="m-r-15 text-primary ${this.activityPermission?.name == 'Read' ? 'disabled' : ''}"
                                    controller="activity" action="edit"
                                    id="${it?.id}" params="[teamName: this.teamName]">
                                <i class="icofont icofont-ui-edit"></i>

                            </g:link>
                            <g:form resource="${it}" method="DELETE" class="inline">
                                <button class="deleteBtn text-danger ${this.activityPermission?.name == 'Read' ? 'disabled' : ''}" type="button"><i
                                        class="icofont icofont-trash"></i> </button>
                            </g:form>

                        </td>
                    </tr>
                </g:each>
                </tbody>
            </table>
        </div>
    </div>

</div>
